package com.yiboshi.rehrs.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class NoticeMessage {

    @ApiModelProperty(value ="通知标题")
    String title;


    @ApiModelProperty(value ="用户消息")
    List<String> contents;


    public void addContent(String content){
        if(contents==null){
            contents = new ArrayList<>();
        }
        contents.add(content);
    }
}
